import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pawnshop.settings')
django.setup()

from api import models

# https://19803630852-1645427981-1305448189.cos.ap-chengdu.myqcloud.com/l13c23ek1645803983515.png
# for i in range(1, 20):
#     models.UserInfo.objects.create(phone='%s' % i, nickName='大饼%s' % i)
#
# # print(models.UserInfo.objects.all())

auction = models.Auction.objects.filter(pk=6).first()
print(auction.auction_item.all().filter(status=3))
